package net.yunzhanyi.generic.mapper;

import net.yunzhanyi.generic.domain.model.ClientUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author bestct
 */

@Mapper
public interface ClientUserMapper {
    int deleteByPrimaryKey(Long aid);

    int insert(ClientUser record);

    int insertSelective(ClientUser record);

    ClientUser selectByPrimaryKey(Long aid);

    ClientUser selectSimpleByUid(@Param("uid") Long uid);
    ClientUser selectByUid(@Param("uid") Long uid);

    int updateByPrimaryKeySelective(ClientUser record);

    int updateByPrimaryKey(ClientUser record);

    long selectCountByNickName(String nickName);

    ClientUser selectByNickName(@Param("nickName") String nickName);

    List<ClientUser> selectByKeyword(String keyword);
}